#!/bin/bash
for n in 10.0.0.{1..254};do
	ping -W 2 -c 2 $n &>/dev/null
	if [ $? -eq 0 ];then
		echo "$n is ok"
	else
		echo "$n is flase"
	fi
done